package state;

/**
 * @Author shenhan
 * @Date: 2020/4/12 15:13
 * @Description:
 */
public class NoRaffleState extends State {
    RaffleActivity activity;

    public NoRaffleState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("扣除积分50，您可以抽奖了");
        activity.setState(activity.getCanRaffleState());
    }

    @Override
    public boolean raffle() {
        System.out.println("扣了积分才能抽奖哦。");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("当前不能发奖品");
    }
}
